<?php
$config = [
    'basePath' => dirname(__DIR__),
    'components' => [
        'request' => [
            // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
//            'cookieValidationKey' => 'P2QQHcTADaNOlwvGfWEV-NO5E7Ifc6dF',
        ],
        'urlManager' => [
            'enablePrettyUrl' => true,
        ],
        'view' => [
            'class' => 'yi\web\View',
            'renderers' => [
                'html' => [
                    'class' => 'yi\think\ViewRenderer',
                    'defaultExtension' => 'html',
                    'view_path' => __DIR__ . '/../views/hello/',
                    // 模板编译缓存目录（可写）
                    'cache_path' => __DIR__ . '/../runtime/',
                ]
            ]
        ]
    ]
];

return $config;
